﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/ad/adminmaster.Master" CodeBehind="EditSanPham.aspx.vb" Inherits="SanDauGia.DAL.WebForm3" %>
<%@ Register assembly="CollectionPager" namespace="SiteUtils" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" 
        AutoGenerateRows="False" DataKeyNames="MaSanPham" 
        DataSourceID="ObjectDataSource1" EnableModelValidation="True" Height="50px" 
        Width="125px">
        <Fields>
            <asp:BoundField DataField="MaSanPham" HeaderText="MaSanPham" ReadOnly="True" 
                SortExpression="MaSanPham" />
            <asp:BoundField DataField="TenSanPham" HeaderText="TenSanPham" 
                SortExpression="TenSanPham" />
            <asp:BoundField DataField="DonGia" HeaderText="DonGia" 
                SortExpression="DonGia" />
            <asp:BoundField DataField="GiaDauCaoNhat" HeaderText="GiaDauCaoNhat" 
                SortExpression="GiaDauCaoNhat" />
            <asp:BoundField DataField="MaKhachHangDauCaoNhat" 
                HeaderText="MaKhachHangDauCaoNhat" SortExpression="MaKhachHangDauCaoNhat" />
            <asp:BoundField DataField="DonViTinh" HeaderText="DonViTinh" 
                SortExpression="DonViTinh" />
            <asp:BoundField DataField="MoTa" HeaderText="MoTa" SortExpression="MoTa" />
            <asp:BoundField DataField="MaDanhMuc" HeaderText="MaDanhMuc" 
                SortExpression="MaDanhMuc" />
            <asp:BoundField DataField="MaLoai" HeaderText="MaLoai" 
                SortExpression="MaLoai" />
            <asp:TemplateField HeaderText="HinhAnhLon" SortExpression="HinhAnhLon">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("HinhAnhLon") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("HinhAnhLon") %>'></asp:TextBox>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" 
                        ImageUrl='<%# Eval("HinhAnhLon", "~/ImagesProduct/{0}") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="HinhAnhNho" SortExpression="HinhAnhNho">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("HinhAnhNho") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("HinhAnhNho") %>'></asp:TextBox>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Image ID="Image2" runat="server" Height="123px" 
                        ImageUrl='<%# Eval("HinhAnhNho", "~/ImagesProduct/{0}") %>' Width="212px" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="GiaSan" HeaderText="GiaSan" 
                SortExpression="GiaSan" />
            <asp:BoundField DataField="GiaMuaNgay" HeaderText="GiaMuaNgay" 
                SortExpression="GiaMuaNgay" />
            <asp:BoundField DataField="MucNangGia" HeaderText="MucNangGia" 
                SortExpression="MucNangGia" />
            <asp:BoundField DataField="NgayDauGia" HeaderText="NgayDauGia" 
                SortExpression="NgayDauGia" />
            <asp:BoundField DataField="ThoiGianDauGia" HeaderText="ThoiGianDauGia" 
                SortExpression="ThoiGianDauGia" />
            <asp:BoundField DataField="SoNgayTraHang" HeaderText="SoNgayTraHang" 
                SortExpression="SoNgayTraHang" />
            <asp:BoundField DataField="TienThue" HeaderText="TienThue" 
                SortExpression="TienThue" />
            <asp:BoundField DataField="NgayKetThucDauGia" HeaderText="NgayKetThucDauGia" 
                SortExpression="NgayKetThucDauGia" />
            <asp:BoundField DataField="MaSoNguoiBan" HeaderText="MaSoNguoiBan" 
                SortExpression="MaSoNguoiBan" />
            <asp:BoundField DataField="ChiPhiNguoiBan" HeaderText="ChiPhiNguoiBan" 
                SortExpression="ChiPhiNguoiBan" />
            <asp:BoundField DataField="LuotDauCuoiCung" HeaderText="LuotDauCuoiCung" 
                SortExpression="LuotDauCuoiCung" />
            <asp:BoundField DataField="DiaDiemSanPham" HeaderText="DiaDiemSanPham" 
                SortExpression="DiaDiemSanPham" />
            <asp:BoundField DataField="MoTaChiTietSanPham" HeaderText="MoTaChiTietSanPham" 
                SortExpression="MoTaChiTietSanPham" />
            <asp:CheckBoxField DataField="CoGiaSan" HeaderText="CoGiaSan" 
                SortExpression="CoGiaSan" />
            <asp:BoundField DataField="HinhThucHoanTraTien" 
                HeaderText="HinhThucHoanTraTien" SortExpression="HinhThucHoanTraTien" />
            <asp:BoundField DataField="SoNguoiRaGia" HeaderText="SoNguoiRaGia" 
                SortExpression="SoNguoiRaGia" />
            <asp:BoundField DataField="SoLanRaGia" HeaderText="SoLanRaGia" 
                SortExpression="SoLanRaGia" />
            <asp:CheckBoxField DataField="BanHayMuaNgay" HeaderText="BanHayMuaNgay" 
                SortExpression="BanHayMuaNgay" />
            <asp:CheckBoxField DataField="ChoPhepMuaNgay" HeaderText="ChoPhepMuaNgay" 
                SortExpression="ChoPhepMuaNgay" />
            <asp:CheckBoxField DataField="KetThuc" HeaderText="KetThuc" 
                SortExpression="KetThuc" />
            <asp:CheckBoxField DataField="TraHang" HeaderText="TraHang" 
                SortExpression="TraHang" />
            <asp:BoundField DataField="GhiChu" HeaderText="GhiChu" 
                SortExpression="GhiChu" />
            <asp:BoundField DataField="GhiChu2" HeaderText="GhiChu2" 
                SortExpression="GhiChu2" />
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
                ShowInsertButton="True" />
        </Fields>
    </asp:DetailsView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DeleteMethod="Delete" InsertMethod="Insert" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataBy" 
        TypeName="SanDauGia.DAL.SanDauGiaTableAdapters.SANPHAMTableAdapter" 
        UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_MaSanPham" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="MaSanPham" Type="Int32" />
            <asp:Parameter Name="TenSanPham" Type="String" />
            <asp:Parameter Name="DonGia" Type="Int32" />
            <asp:Parameter Name="GiaDauCaoNhat" Type="Int32" />
            <asp:Parameter Name="MaKhachHangDauCaoNhat" Type="Int32" />
            <asp:Parameter Name="DonViTinh" Type="String" />
            <asp:Parameter Name="MoTa" Type="String" />
            <asp:Parameter Name="MaDanhMuc" Type="Int32" />
            <asp:Parameter Name="MaLoai" Type="Int32" />
            <asp:Parameter Name="HinhAnhLon" Type="String" />
            <asp:Parameter Name="HinhAnhNho" Type="String" />
            <asp:Parameter Name="GiaSan" Type="Int32" />
            <asp:Parameter Name="GiaMuaNgay" Type="Int32" />
            <asp:Parameter Name="MucNangGia" Type="Int32" />
            <asp:Parameter Name="NgayDauGia" Type="DateTime" />
            <asp:Parameter Name="ThoiGianDauGia" Type="Int32" />
            <asp:Parameter Name="SoNgayTraHang" Type="Int32" />
            <asp:Parameter Name="TienThue" Type="Int32" />
            <asp:Parameter Name="NgayKetThucDauGia" Type="DateTime" />
            <asp:Parameter Name="MaSoNguoiBan" Type="Int32" />
            <asp:Parameter Name="ChiPhiNguoiBan" Type="Int32" />
            <asp:Parameter Name="LuotDauCuoiCung" Type="DateTime" />
            <asp:Parameter Name="DiaDiemSanPham" Type="String" />
            <asp:Parameter Name="MoTaChiTietSanPham" Type="String" />
            <asp:Parameter Name="CoGiaSan" Type="Boolean" />
            <asp:Parameter Name="HinhThucHoanTraTien" Type="String" />
            <asp:Parameter Name="SoNguoiRaGia" Type="Int32" />
            <asp:Parameter Name="SoLanRaGia" Type="Int32" />
            <asp:Parameter Name="BanHayMuaNgay" Type="Boolean" />
            <asp:Parameter Name="ChoPhepMuaNgay" Type="Boolean" />
            <asp:Parameter Name="KetThuc" Type="Boolean" />
            <asp:Parameter Name="TraHang" Type="Boolean" />
            <asp:Parameter Name="GhiChu" Type="String" />
            <asp:Parameter Name="GhiChu2" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="TenSanPham" Type="String" />
            <asp:Parameter Name="DonGia" Type="Int32" />
            <asp:Parameter Name="GiaDauCaoNhat" Type="Int32" />
            <asp:Parameter Name="MaKhachHangDauCaoNhat" Type="Int32" />
            <asp:Parameter Name="DonViTinh" Type="String" />
            <asp:Parameter Name="MoTa" Type="String" />
            <asp:Parameter Name="MaDanhMuc" Type="Int32" />
            <asp:Parameter Name="MaLoai" Type="Int32" />
            <asp:Parameter Name="HinhAnhLon" Type="String" />
            <asp:Parameter Name="HinhAnhNho" Type="String" />
            <asp:Parameter Name="GiaSan" Type="Int32" />
            <asp:Parameter Name="GiaMuaNgay" Type="Int32" />
            <asp:Parameter Name="MucNangGia" Type="Int32" />
            <asp:Parameter Name="NgayDauGia" Type="DateTime" />
            <asp:Parameter Name="ThoiGianDauGia" Type="Int32" />
            <asp:Parameter Name="SoNgayTraHang" Type="Int32" />
            <asp:Parameter Name="TienThue" Type="Int32" />
            <asp:Parameter Name="NgayKetThucDauGia" Type="DateTime" />
            <asp:Parameter Name="MaSoNguoiBan" Type="Int32" />
            <asp:Parameter Name="ChiPhiNguoiBan" Type="Int32" />
            <asp:Parameter Name="LuotDauCuoiCung" Type="DateTime" />
            <asp:Parameter Name="DiaDiemSanPham" Type="String" />
            <asp:Parameter Name="MoTaChiTietSanPham" Type="String" />
            <asp:Parameter Name="CoGiaSan" Type="Boolean" />
            <asp:Parameter Name="HinhThucHoanTraTien" Type="String" />
            <asp:Parameter Name="SoNguoiRaGia" Type="Int32" />
            <asp:Parameter Name="SoLanRaGia" Type="Int32" />
            <asp:Parameter Name="BanHayMuaNgay" Type="Boolean" />
            <asp:Parameter Name="ChoPhepMuaNgay" Type="Boolean" />
            <asp:Parameter Name="KetThuc" Type="Boolean" />
            <asp:Parameter Name="TraHang" Type="Boolean" />
            <asp:Parameter Name="GhiChu" Type="String" />
            <asp:Parameter Name="GhiChu2" Type="String" />
            <asp:Parameter Name="Original_MaSanPham" Type="Int32" />
        </UpdateParameters>
    </asp:ObjectDataSource>
</asp:Content>
